package com.chat.service;

import com.chat.common.Message;
import com.chat.common.MessageType;
import com.chat.common.User;

/*
 添加常用语
 */
public class AddCommonPharse {
      public void add(String commonlang,String userid){
            Message msg=new Message();
            msg.setMesType(MessageType.MESSAGE_ADD_COMMON_PHARSE);
            User user=new User();
            user.setUsername(userid);
            user.setCommonpharse(commonlang);
            msg.setData(user);
            ClientConnectServerThread clientConnectServerThread=ManageClientConnectServerThread.getClientConnectServerThread(userid);
            clientConnectServerThread.send(msg);
      }
}
